package de.bht.fb6.cg1.exercise4;

public abstract class Koord {
	
	protected double[] koords;
	
	public Koord(double[] koord) {
		koords = koord;
	}
	
	public int size() {
		return koords.length;
	}
	
	public abstract void draw();
	
	public static Koord create(String type, double[] koords) {
		if (type.equals("v")) return new Vertex(koords);
		if (type.equals("vt")) return new Texture(koords);
		if (type.equals("vn")) return new Normal(koords);
		
		return null;
	}
}
